all: registery_server rpc_server rpc_client 
CFLAG=-std=c++11 -I /root/muduo/build/release-install-cpp11/include/
LFLAG=-L /root/muduo/build/release-install-cpp11/lib/  -ljsoncpp -lmuduo_net -lmuduo_base -lpthread 
rpc_server:rpc_server.cc
	g++  -o $@  $^  $(LFLAG) -lstdc++ $(CFLAG) 

rpc_client:rpc_client.cc
	g++  $(CFLAG) $^ -o $@ $(LFLAG) 

registery_server:registery_server.cc
	g++  $(CFLAG) $^ -o $@ $(LFLAG) 

.PHONY:clean
clean:
	rm -rf registery_server rpc_client rpc_server